<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>报告解读确认支付</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../css/mui.min.css">
		<link rel="stylesheet" href="../css/main.css" />
		<style>
			.jvse {
				color: #ff9e0d;
				padding-top: 90px;
			}
			
			.mui-badge {
				font-size: 12px;
				line-height: 1;
				display: inline-block;
				padding: 6px 6px;
				color: #FFFFFF;
				border-radius: 8px;
			}
			
			.mui-col-xs-5 {
				text-align: right;
				width: 47%;
			}
			
			.ziti {
				font-size: 15px;
				color: #454545;
				font-weight: bold;
			}
			
			.ziti2 {
				font-size: 18px;
				color: #E4933C;
			}
			
			.zitijg {
				font-size: 15px;
				color: #454545;
			}
			
			.neirong {
				font-size: 15px;
				color: #333333;
				padding-top: 10px;
				line-height: 22px;
			}
			
			.neirong1 {
				font-size: 15px;
				color: #333333;
				padding-top: 10px;
				line-height: 14px;
			}
			
			p {
				font-size: 14px;
				margin-top: 0;
				margin-bottom: 10px;
				color: #333333;
			}
			
			.mui-btn-warning1 {
				background: #bcbcbc;
				border-radius: 10px;
				width: 100%;
				height: 0.9rem;
				font-size: 15px;
				color: #ffffff;
				height: 42px;
			}
			
			.mui-btn-warning {
				background: #FCB565;
				border-radius: 10px;
				width: 100%;
				height: 0.9rem;
				font-size: 15px;
				height: 42px;
			}
			
			.mui-grid-view.mui-grid-9 .mui-table-view-cell {
				margin: 0;
				padding: 15px 2px;
				vertical-align: top;
			}
			
			.mui-table1 {
				width: 100%;
				float: left;
			}
			
			.jiage {
				width: 30%;
				float: right;
			}
			
			.mui-ios .mui-table-view-cell {
				margin-top: 3px;
			}
			
			.mui-table-view-cell:after {
				position: absolute;
				right: 0;
				bottom: 0;
				left: 0px;
				height: 1px;
				content: '';
				-webkit-transform: scaleY(.5);
				transform: scaleY(.5);
				background-color: #c8c7cc;
			}
			
			.mui-badge {
				font-size: 12px;
				line-height: 1;
				display: inline-block;
				padding: 6px 9px;
				color: #FFFFFF;
				border-radius: 8px;
				background-color: #66cc99;
				width: 55px;
			}
			
			.mui-col-xs-7 {
				width: 53%;
			}
			
			.mui-btn-block {
				padding: 0px 0;
			}
			
			.tR {
				text-align: right;
			}
			
			.mui-grid-view.mui-grid-9 {
				margin: 0;
				padding: 0;
				background-color: #efeff4;
			}
			
			.no_xian:after {
				height: 0;
			}
			.ziti1{
				font-size: 15px;
				color: #E4933C;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">报告解读确认支付</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed tableUL">
				<li class="mui-table-view-cell">
					<div class="mui-table">
						<div class="mui-table-cell mui-col-xs-7">
							<p>您的报告解读费用如下：</p>
						</div>

					</div>
				</li>
			</ul>
			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed tableUL">
				<li class="mui-table-view-cell">
					<div class="mui-table1">
						<div class="mui-table-cell mui-col-xs-10">
							<p class="neirong"><span id="name"> </span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="male"></span>&nbsp;&nbsp;<span id="age"></span></p>
						</div>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<div class="mui-table1">
						<div class="mui-table-cell mui-col-xs-10">
							<p class="ziti">问题描述：</p>
							<p class="neirong" id="question">
								怀孕3个月，今天化验了一下肝功能，转氨酶有些高，想请大夫帮忙看一下，怎么回事？以前是正常的，我以后应该注意哪些事项。
							</p>
						</div>
					</div>
				</li>
			</ul>
			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed tableUL">
				<li class="mui-table-view-cell no_xian">
					<div class="mui-table">
						<div class="mui-table-cell mui-row">
							<p class="mui-col-xs-6">服务费用：</p>
							<p class="mui-pull-right mui-col-xs-6 tR" id="money_service">400元/次</p>
						</div>
					</div>
				</li>
				
				<li class="mui-table-view-cell" id="youhuijuan_money" style="display: block;">
					<div class="mui-table">
						<div class="mui-table-cell mui-row">
							<p class="mui-col-xs-6">优惠券：</p>
							<p class="mui-pull-right mui-col-xs-6 tR" id="beipin_money">50元/次</p>
						</div>
					</div>
				</li>
			</ul>
			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed tableUL">
				<li class="mui-table-view-cell">
					<div class="mui-table">
						<div class="mui-table-cell mui-row">
							<p class="ziti2 mui-col-xs-6"></p>
							<p class="ziti2 mui-pull-right mui-col-xs-6 tR" id="heji">合计：350元</p>
						</div>
					</div>
				</li>
			</ul>
			<div class="mui-content-padded">
				<ul class="mui-table-view mui-grid-view mui-grid-9">
					<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
						<a href="#">
							<button id='cancel' class="mui-btn-block mui-btn-warning1">取消</button>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
						<a href="#">
							<button id='queding' class="mui-btn-block mui-btn-warning">现在支付</button>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script type="text/javascript" src="../js/constants.js"></script>
	<script type="text/javascript" src="../js/xiangyingshi.js"></script>
	<script type="text/javascript" src="../js/jquery-3.1.1.js"></script>
	<script type="text/javascript" src="../plugs/moment/moment.min.js"></script>
	<script type="text/javascript" src="../js/json_time.js"></script>
	<script>
		var JSONMESSAGENEW = {};
		var order_id;
		mui.plusReady(function() {
			if(plus.navigator.isImmersedStatusbar()) { // 兼容immersed状态栏模式
				// 获取状态栏高度并根据业务需求处理，这里重新计算了子窗口的偏移位置
				topoffset = (Math.round(plus.navigator.getStatusbarHeight()) + 45) + 'px';
				document.querySelector("header").style.height = topoffset;
				document.querySelector("header").style.paddingTop = "20px";
				document.querySelector(".mui-bar-nav~.mui-content").style.paddingTop = topoffset;
			}
			// 加载完毕后关闭等待框，并展示页面
			var currentView = plus.webview.currentWebview();
			currentView.show('slide-in-right', 200);
			plus.nativeUI.closeWaiting();

			var customer=JSON.parse(currentView.CUSTOMER_JSON);
			var question=JSON.parse(currentView.QUESTION);

			
			$("#name").html(customer.realname);
			$("#male").html(customer.gender);
			$("#age").html(customer.age);
			$("#question").html(question.description);
			$("#heji").html("合计："+currentView.ONLINE_JINE+"元");
			
			
			$("#queding").click(function(e) {
				
				var heji = $("#heji").html().split("：")[1];
				mui.openWindow({
					id: 'wait-payment.html',
					url: '../order/wait-payment.html',
					show: {
						autoShow: false, //页面loaded事件发生后自动显示，默认为true
						event: 'loaded' //页面显示时机，默认为titleUpdate事件时显示
					},
					waiting: {
						autoShow: true //自动显示等待框，默认为true
					},
					extras: {
						ORDER_ID: currentView.ORDER_ID, //扩展参数
						MONEY_HEJI: heji,
						STATUS: 0
					}
				});
				var waitpament = plus.webview.getWebviewById("wait-payment.html");
				mui.fire(waitpament, 'order_id', {
					ORDER_ID: order_id
				});

			});
			$("#cancel").click(function(e) {
				mui.alert("您的预约已生成，请尽快完成支付，否则预约将过期。");

				//STATUS为下TAB的索引，UPSTATUS为上TAB的索引
				var index = plus.webview.getLaunchWebview();
				mui.fire(index, 'orderend', {
					STATUS: 2,
					TITLE: '订单',
					UPSTATUS: 2
				});
				mui.fire(index,"refresh");
				var i = plus.webview.getLaunchWebview();
				if(i) {
					i.evalJS("setItemActive(2,1)");
					localStorage.setItem("upitem", 2);
				}
				var quxiao_current = plus.webview.currentWebview().close(true);
			});
		});


	</script>

</html>